Skip to content

feat(ios): move the app into Split View on an iPhone Duo simulator - #5083

Merged
thymikee merged 4 commits into
mainfrom
t3/iphone-duo-split-view
Nov 25, 2026
Merged

thymikee merged 4 commits into
mainfrom
t3/iphone-duo-split-view

Conversation

@thymikee

@thymikee thymikee commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary

On an open iPhone Duo simulator, gesture swipe split-view-left and split-view-right move the full-screen app into that half of Split View. Then open <bundle> puts a second app in the other half. They reuse the runner's simulator screen-edge touch; the runner is unchanged. Part of #4709 (entering Split View; leaving it stays open).

Other devices, a closed Duo, and WebDriver providers refuse with split_view_unavailable and send no touch. There the same touch would open Home or the app switcher.

Before / after

# base 758ae64 (0.21.41 CLI)
$ agent-device gesture swipe split-view-left
Error (INVALID_ARGS): Expected preset to be one of: left, right, left-edge, right-edge.

# head ee4160d, iPhone Duo simulator, iOS 27.1
$ agent-device gesture swipe split-view-right   -> Flung   (app in right half, Home Screen left)
$ agent-device fold closed && agent-device gesture swipe split-view-left
Error (UNSUPPORTED_OPERATION): Split View needs an iOS simulator with more than one panel and its inner panel lit   (reason split_view_unavailable, dispatched no)

Validation

  • Head ee4160d. Ran node bin/agent-device.mjs on an iPhone Duo simulator (iOS 27.1). Settings went right and a React Native dev client went left, each beside the Home Screen. open com.apple.mobilesafari filled the other half, and the closed pose refused.
  • Later heads (to d7fb66f) change docs, refusal details, and tests only; all 21 checks pass at d7fb66f.
  • vitest --project unit-core on gestures, platform-apple, provider-webdriver, contracts, command-surface, and src/commands passed: 404 files, 4117 tests.
  • Physical Duo and iPad simulators are refused by design.

🤖 Generated with Claude Code

gesture swipe split-view-left and split-view-right drag the full-screen app
into that half of Split View, reusing the runner's simulator screen-edge
touch. Only a foldable simulator with its inner panel lit runs it; any
other device, a closed Duo, or a WebDriver provider refuses with
split_view_unavailable before any touch, because the same bottom-edge
touch opens Home or the app switcher there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.58 MB 6.58 MB +2.1 kB
Package (unpacked) 6.58 MB 6.58 MB +2.1 kB
Package (download) 2.01 MB 2.01 MB +812 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 31.4 ms 32.6 ms +1.2 ms
CLI --help 70.1 ms 64.9 ms -5.2 ms

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread website/docs/docs/commands.md Resolved
Comment thread packages/gestures/src/gesture-plan.ts Resolved
Comment thread website/docs/docs/commands.md Resolved
…ncellation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 1 new finding on 4d81534. The verdict and the full list are in the summary comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of d7fb66f

Since the review of 4d81534: 0 new · 0 still open · 1 no longer raised (1 marked fixed)

No open findings.

2 findings below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (b2d4ec051109).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

The change at d7fb66f is ready from the code side. The only check that did not pass is "Body rules", which was cancelled; the diff touches no workflow or body-rules tooling, so it looks unrelated, but it needs a re-run to turn green (the PR body's "all 21 checks pass" is now stale). There are no conflicts. The live Duo run (Settings right, dev client left, Safari in the other half, closed pose refused) is the author's report at ee4160d; the plan geometry and Apple touch route are unchanged since, so it still applies. Not verified here: tests were not run locally, and the half-open pose and repeated open between halves have no live evidence.

Not blocking, and fine to take or leave: split-view.ts:28 could decide the lit panel through establishedLitPanel, which also refuses an unknown power state; split-view.ts:29 could reuse the existing panel-table-unreadable refusal and its retry hint; an Interactor that ignores contactOrigin would run the plan as a plain bottom-edge drag, so a follow-up could make unknown values default-deny; the help text in cli-help-foldable.ts:24 claims half-open and switching halves, which the live run did not cover; and no test covers the unreadable-table branch in split-view.test.ts.

Before merge, re-run the cancelled "Body rules" check.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 24, 2026
@thymikee
thymikee merged commit 9b526aa into main Nov 25, 2026
22 of 23 checks passed
@thymikee
thymikee deleted the t3/iphone-duo-split-view branch November 25, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant